home *** CD-ROM | disk | FTP | other *** search
- { %filename% -- application methods }
- { Created %date% %time% by AppMaker }
-
- { We recommend that you not modify this module and instead modify }
- { its subclass, %Appname%App. The 'z' prefix on this module marks% %}
- { a module which is likely to be regenerated by AppMaker after you }
- { make changes to the user interface. The modules without the 'z' }
- { prefix will not be regenerated by AppMaker unless you delete them. }
- { Using a separate subclass to override the AppMaker-generated code }
- { lets you regenerate code without losing your hand-coded changes. }
-
- Unit %unitname%;
- Interface
-
- Uses
- TCL,
- AMCL,
- z%AppName%Intf,
- %AppName%Intf,
- %for each menu gen usesDialogs%
- ResourceDefs;
-
- {----------}
- Implementation
-
- {----------}
- Procedure Z%Appname%App.I%Appname%App;
- Begin
- IApplication (4, 20480, 2048);
-
- %for each dialog gen createModeless%
- End; {I%Appname%App}
-
- {----------}
- Procedure Z%Appname%App.SetUpMenus;
- Begin
- inherited SetUpMenus;
- %for each menu gen setup%
-
- %for each menu gen addPopup%
- End; {SetUpMenus}
-
- {----------}
- Procedure Z%Appname%App.CreateDocument;
- Var
- theDocument:% %C%Appname%Doc;
- Begin
- New (theDocument);
- with theDocument do begin
- I%Appname%Doc (self, true);
- NewFile;
- end; {with}
- End; {CreateDocument}
-
- {----------}
- Procedure Z%Appname%App.OpenDocument (macSFReply: SFReply);
- Var
- theDocument:% %C%Appname%Doc;
- Begin
- New (theDocument);
- with theDocument do begin
- I%Appname%Doc (self, true);
- OpenFile (macSFReply);
- end; {with}
- End; {OpenDocument}
-
- %for each menu gen doItems%
- {----------}
- Procedure Z%Appname%App.DoCommand (theCommand: longint);
- Begin
- case theCommand of
- 0: ;
- %for each menu gen handleItems%
- otherwise
- inherited DoCommand (theCommand);
- end; {case}
- End; {DoCommand}
-
- End. {%unitname%}
-